#ifndef _WORDTRANSLATOR_H_
#define _WORDTRANSLATOR_H_

#include <QCoreApplication>
#include <QFile>
#include <QString>

class QXmlStreamWriter;
class QSettings;

/**
 * \class ExampleClass
 *
 * \ingroup PackageName
 * (Note, this needs exactly one \defgroup somewhere)
 *
 * \brief Provide an example
 *
 * This class is meant as an example.  It is not useful by itself
 * rather its usefulness is only a function of how much it helps
 * the reader.  It is in a sense defined by the person who reads it
 * and otherwise does not exist in any real form. 
 *
 * \note Attempts at zen rarely work.
 *
 * \author (last to touch it) $Author: bv $
 *
 * \version $Revision: 1.5 $
 *
 * \date $Date: 2005/04/14 14:16:20 $
 *
 * Contact: bv@bnl.gov
 *
 * Created on: Wed Apr 13 18:39:37 2005
 *
 * $Id: doxygen-howto.html,v 1.5 2005/04/14 14:16:20 bv Exp $
 *
 */
class WordTranslator : public QCoreApplication
{
	Q_OBJECT
public:
	/**
	 * Constructor al que pasamos la línea de argumentos de ejecución
	 *
	 * @param argc Número de argumentos
	 * @param argv Lista de argumentos
	 */
	WordTranslator(int& argc, char** argv, QSettings* settings);

	/// Método que realiza la traducción de una palabra 
	bool translate(const QString& word, QXmlStreamWriter& writer);


public slots:
    void world();

private:
	QSettings* _settings;
	QFile _inputFile; ///< Archivo con la lista de palabras a consultar

signals:
    void done();
};

#endif // _WORDTRANSLATOR_H_
